<html>
<head><meta charset="utf-8"><title>submodule error · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/submodule.20error.html">submodule error</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="217357121"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/submodule%20error/near/217357121" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Noah Lev <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/submodule.20error.html#217357121">(Nov 20 2020 at 03:12)</a>:</h4>
<p>Has anyone else had this submodule error when running <code>x.py</code>?</p>
<div class="codehilite"><pre><span></span><code>Updating only changed submodules
Updating submodule src/tools/miri
Submodule path &#39;src/tools/miri&#39;: checked out &#39;c8f51fc5a772a125f3b3ad7fe46609a4638ca509&#39;
Updating submodule library/stdarch
remote: Enumerating objects: 152, done.
remote: Counting objects: 100% (152/152), done.
remote: Total 227 (delta 151), reused 151 (delta 151), pack-reused 75
Receiving objects: 100% (227/227), 288.94 KiB | 2.12 MiB/s, done.
Resolving deltas: 100% (170/170), completed with 67 local objects.
From https://github.com/rust-lang/stdarch
   027680f3..777efaf5  master     -&gt; origin/master
error: Your local changes to the following files would be overwritten by checkout:
    crates/core_arch/src/mod.rs
Please commit your changes or stash them before you switch branches.
Aborting
</code></pre></div>
<p>I've had it multiple times. It can be fixed with <code>git submodule update --force library/stdarch</code>, but it's weird because I didn't change <code>stdarch</code> at all!</p>



<a name="217357259"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/submodule%20error/near/217357259" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> oliver <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/submodule.20error.html#217357259">(Nov 20 2020 at 03:15)</a>:</h4>
<p>Is your editor erasing white-spaces or similar?</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>